Previous Book Contents Book Index Next

Inside Macintosh: Programming With JManager /
Chapter 2 - JManager Reference / JManager Functions
Utility Functions /


JMFSSToURL

Converts a Mac OS file system specification record (FSSpec) into a Uniform Resource Locator (URL) string.

Handle JMFSSToURL   (JMSessionRef session,
                     const FSSpec* spec);
session
The current session.
spec
A pointer to a file system specification record.
function result
A handle containing a URL string in the form file://xxxx. If the file cannot be found, the function returns null.
DISCUSSION
The JMFSSToURL function resolves the path of the file represented by the file system specification record and returns this information as a URL string. The handle returned points to a null-terminated string. Your application is responsible for calling the Mac OS Toolbox function DisposeHandle to release the allocated handle.

SEE ALSO
The JMURLToFSS function.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
10 DEC 1997